.timeline {
  position: relative;

  & > li::before {
    content: '';
    position: absolute;
    left: -1.05rem;
    bottom: 0;
    border-left: 1px solid var(--yellow);
  }

  & > li:first-child:last-child::before {
    border-left: 0;
  }

  & > li:not(:first-child):not(:last-child)::before {
    top: 0;
  }

  & > li:first-child::before {
    top: 50%;
  }

  & > li:last-child::before {
    bottom: 50%;
    top: 0;
  }

  li {
    position: relative;
    list-style-type: none;
    color: var(--yellow);
  }

  li::after {
    content: '';
    left: -1.28rem;
    top: 50%;
    transform: translateY(-50%);
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
    position: absolute;
    background-color: var(--yellow);
  }
}
